using System;
using System.Collections.Generic;


namespace Gfw.Models.Stock
{
	[Serializable]
	public partial class StkAdminaccount: IEquatable<StkAdminaccount>
	{

		#region Private Members

		private string _userid; 
		private decimal _stockmoney; 
		private decimal _stockcount; 
		private decimal _originalstockmoney; 		
		#endregion

		#region Constructor

		public StkAdminaccount()
		{
			_userid = String.Empty; 
			_stockmoney = 0; 
			_stockcount = 0; 
			_originalstockmoney = 0; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Userid
		{
			get
			{ 
				return _userid;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Userid", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Userid", value, value.ToString());
				
				_userid = value;
			}
		}
			
		public virtual decimal StockMoney
		{
			get
			{ 
				return _stockmoney;
			}
			set
			{
				_stockmoney = value;
			}

		}
			
		public virtual decimal StockCount
		{
			get
			{ 
				return _stockcount;
			}
			set
			{
				_stockcount = value;
			}

		}
			
		public virtual decimal OriginalStockMoney
		{
			get
			{ 
				return _originalstockmoney;
			}
			set
			{
				_originalstockmoney = value;
			}

		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

		public virtual bool Equals(StkAdminaccount other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._userid == other.Userid );
				   
		}

		#endregion
		
	}
}
